package com.lanou3g.bbs.util;

public class CloseAll {
    public static void CloseA(AutoCloseable... closeables){
        if (closeables==null){
            return;
        }
        for (AutoCloseable closeable : closeables) {
            if (closeable!=null){
                try {
                    closeable.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
